package com.hengxinguotong.zhihuichengjian.utils;

import com.hengxinguotong.zhihuichengjian.R;
import com.hengxinguotong.zhihuichengjian.bean.JumpBean;
import com.hengxinguotong.zhihuichengjian.ui.CarManagementActivity;
import com.hengxinguotong.zhihuichengjian.ui.CompanyActivity;
import com.hengxinguotong.zhihuichengjian.ui.EnergyActivity;
import com.hengxinguotong.zhihuichengjian.ui.GroupInfoMaitainActivity;
import com.hengxinguotong.zhihuichengjian.ui.HookMonitorActivity;
import com.hengxinguotong.zhihuichengjian.ui.PersonTrailListActivity;
import com.hengxinguotong.zhihuichengjian.ui.PersonnelListActivity;
import com.hengxinguotong.zhihuichengjian.ui.StatisticReportActivity;
import com.hengxinguotong.zhihuichengjian.ui.VideoListActivity;
import com.hengxinguotong.zhihuichengjian.ui.building.BuildListActivity;
import com.hengxinguotong.zhihuichengjian.ui.building.NoticeListActivity;
import com.hengxinguotong.zhihuichengjian.ui.building.ReplyListActivity;
import com.hengxinguotong.zhihuichengjian.ui.device.DeviceDisassembleListActivity;
import com.hengxinguotong.zhihuichengjian.ui.device.DeviceInspectionListActivity;
import com.hengxinguotong.zhihuichengjian.ui.device.DeviceListActivity;
import com.hengxinguotong.zhihuichengjian.ui.device.DeviceMainTainListActivity;
import com.hengxinguotong.zhihuichengjian.ui.device.DeviceSearchActivity;
import com.hengxinguotong.zhihuichengjian.ui.document.DocumentManagementActivity;
import com.hengxinguotong.zhihuichengjian.ui.engineering.reservation.ReservationListActivity;
import com.hengxinguotong.zhihuichengjian.ui.engineering.task.ProjectScheduleActivity;
import com.hengxinguotong.zhihuichengjian.ui.engineering.task.ProjectStructureActivity;
import com.hengxinguotong.zhihuichengjian.ui.engineering.task.ScheduledPlanActivity;
import com.hengxinguotong.zhihuichengjian.ui.engineering.task.TaskListActivity;
import com.hengxinguotong.zhihuichengjian.ui.environment.data.EnvironmentDataListActivity;
import com.hengxinguotong.zhihuichengjian.ui.environment.spray.EnvironmentSprayListActivity;
import com.hengxinguotong.zhihuichengjian.ui.environment.warning.EnvironmentWarningListActivity;
import com.hengxinguotong.zhihuichengjian.ui.lift.data.LiftDataListActivity;
import com.hengxinguotong.zhihuichengjian.ui.lift.violation.LiftViolationListActivity;
import com.hengxinguotong.zhihuichengjian.ui.lift.warning.LiftWarningListActivity;
import com.hengxinguotong.zhihuichengjian.ui.material.MaterialInListActivity;
import com.hengxinguotong.zhihuichengjian.ui.material.MaterialUseListActivity;
import com.hengxinguotong.zhihuichengjian.ui.quality.MeasureListActivity;
import com.hengxinguotong.zhihuichengjian.ui.quality.QualityAccidentListActivity;
import com.hengxinguotong.zhihuichengjian.ui.quality.QualityListActivity;
import com.hengxinguotong.zhihuichengjian.ui.quality.RectificationListActivity;
import com.hengxinguotong.zhihuichengjian.ui.safetystudy.PersonManagementActivity;
import com.hengxinguotong.zhihuichengjian.ui.safetystudy.StatisticsAndQueryActivity;
import com.hengxinguotong.zhihuichengjian.ui.safetystudy.StudyRecordActivity;
import com.hengxinguotong.zhihuichengjian.ui.security.SafetyListActivity;
import com.hengxinguotong.zhihuichengjian.ui.statistics.attendance.AttendanceFormDataActivity;
import com.hengxinguotong.zhihuichengjian.ui.statistics.environment.EnvironmentFormDataActivity;
import com.hengxinguotong.zhihuichengjian.ui.statistics.lift.LiftFormDataActivity;
import com.hengxinguotong.zhihuichengjian.ui.statistics.tower.TowerFormDataActivity;
import com.hengxinguotong.zhihuichengjian.ui.tower.data.TowerDataListActivity;
import com.hengxinguotong.zhihuichengjian.ui.tower.violation.TowerViolationListActivity;
import com.hengxinguotong.zhihuichengjian.ui.tower.warning.TowerWarningListActivity;

import java.util.HashMap;

/**
 * Created by liux on 2017/3/3.
 */

public class Constants {
    public static String[] sexString = {"男", "女"};
    public static String[] resultString = {"合格", "不合格"};
    public static String[] positionString = {"项目经理", "项目副经理", "技术负责人", "施工员", "质检员", "安全员", "材料员", "预算员", "资料员", "工长", "项目总监", "班组长", "设备管理员"};
    public static String[] professionString = {"钢筋工", "混凝土工", "木工", "油漆工", "泥工", "机械修理工", "水电工", "电焊工", "架子工", "司索工", "土工", "普工", "升降机司机"};
    public static String[] workAgeString = {"1", "2", "3", "4", "5", "6"};
    public static String[] companyString = {"专业分包", "劳务分包", "租赁公司", "建设单位", "施工单位", "监理单位"};

    public final static String HST_PSD = "admin123456";
    public final static String MEETING_INFO = "meeting_info";

    public final static int LIVE = -1;  //现场检查
    public final static int QUALITY = 1;  //质量
    public final static int SECURITY = 2; //安全
    public final static int DAILY_SECURITY = 3; //日常安全
    public final static int QUALITY_QUESTION = 4;  //质量问题
    public final static int SECURITY_QUESTION = 5; //安全问题
    public final static int TASK_CREAT = 6; //新增任务
    public final static int QUALITY_SUPERVISE = 11;//质量监督
    public final static int SECURITY_SUPERVISE = 13;//安全监督
    public final static int CIVILIZED_CONSTRUCTION_SUPERVISE = 15;//文明施工监督

    public final static int SAFETY_TRAINING = 1; //安全培训
    public final static int SAFETY_DRILL = 2;  //安全演习

    public final static String USER = "01_"; //用户
    public final static String PERSONNEL = "02_";  //人员
    public final static String DEVICE = "03_";  //设备
    public final static String MATERIAL = "04_";  //材料

    public final static int UPDATE =  0x1001;
    public final static int FORMDATA_STATUS =  0x1002;
    public final static int FORMDATA_EQUIPMENT_COUNT =  0x1003;
    public final static int FORMDATA_REASON =  0x1004;
    public final static int FORMDATA_DAILY_COUNT =  0x1005;
    public final static int FORMDATA_COUNT =  0x1006;
    public final static int FORMDATA_RANKING =  0x1007;
    public final static int FORMDATA_DETAIL =  0x1008;
    public final static int FORMDATA_COMPANY =  0x1009;
    public final static int FORMDATA_TEAM =  0x1010;
    public final static int FORMDATA_WORKTIME =  0x1011;

    public final static int ONE = 1;

    public static HashMap<String, Integer> workTypeHashMap = new HashMap<String, Integer>();


    public static HashMap<Integer, JumpBean> indexHashMap = new HashMap<Integer, JumpBean>();

    static {
        //todo 正式版时，监督检查id固定
        //监督检查
        indexHashMap.put(0, new JumpBean(R.mipmap.icon_zhiliangjiancha, R.mipmap.icon_zhiliangjiancha, null));
        indexHashMap.put(50, new JumpBean(R.mipmap.icon_zhiliangjiancha, R.mipmap.icon_zhiliangjiancha, null));
        //质量监督
        indexHashMap.put(51, new JumpBean(R.mipmap.icon_zhiliangguanli, R.mipmap.icon_zhiliangguanli,  QualityListActivity.class, "type", Constants.QUALITY_SUPERVISE));
        //质量整改
        indexHashMap.put(52, new JumpBean(R.mipmap.icon_zhiliangzhenggai, R.mipmap.icon_zhiliangzhenggai, RectificationListActivity.class, "type", Constants.QUALITY_SUPERVISE));
        //安全监督
        indexHashMap.put(53, new JumpBean(R.mipmap.icon_anquanjiancha, R.mipmap.icon_anquanjiancha,  QualityListActivity.class, "type", Constants.SECURITY_SUPERVISE));
        //安全整改
        indexHashMap.put(54, new JumpBean(R.mipmap.icon_anquanzhenggai, R.mipmap.icon_anquanzhenggai, RectificationListActivity.class, "type", Constants.SECURITY_SUPERVISE));
        //文明施工监督
        indexHashMap.put(55, new JumpBean(R.mipmap.icon_anquanguanli, R.mipmap.icon_anquanguanli,  QualityListActivity.class, "type", Constants.CIVILIZED_CONSTRUCTION_SUPERVISE));
        //文明施工整改
        indexHashMap.put(56, new JumpBean(R.mipmap.icon_anquanyanxi, R.mipmap.icon_anquanyanxi, RectificationListActivity.class, "type", Constants.CIVILIZED_CONSTRUCTION_SUPERVISE));

        indexHashMap.put(100, new JumpBean(R.mipmap.icon_shipinjiankong, R.mipmap.icon_shipinjiankong, VideoListActivity.class));

        indexHashMap.put(200, new JumpBean(R.mipmap.icon_renyuanguanli, R.mipmap.icon_renyuanguanli, null));

        indexHashMap.put(210, new JumpBean(R.mipmap.icon_gongsiweihu, R.mipmap.icon_gongsiweihu, CompanyActivity.class));

//        indexHashMap.put(220, new JumpBean(R.mipmap.icon_banzuguanli, R.mipmap.banzuguanli, GroupListActivity.class));
        indexHashMap.put(220, new JumpBean(R.mipmap.icon_banzhuweihu, R.mipmap.icon_banzhuweihu, GroupInfoMaitainActivity.class));

        indexHashMap.put(230, new JumpBean(R.mipmap.icon_renyuanweihu, R.mipmap.icon_renyuanweihu, PersonnelListActivity.class));

        indexHashMap.put(240, new JumpBean(R.mipmap.icon_kaoqinguanli, R.mipmap.icon_kaoqinguanli, null));

        indexHashMap.put(250, new JumpBean(R.mipmap.icon_chuqin, R.mipmap.icon_chuqin, null));
        //TODO 图标要换为人员轨迹图标
        indexHashMap.put(260, new JumpBean(R.mipmap.icon_chuqin, R.mipmap.icon_chuqin, PersonTrailListActivity.class));//人员轨迹列表
        //考勤查询
        indexHashMap.put(270, new JumpBean(R.mipmap.icon_chuqin, R.mipmap.icon_chuqin, null));

        indexHashMap.put(280, new JumpBean(R.mipmap.icon_cheliangguanli, R.mipmap.icon_cheliangguanli, CarManagementActivity.class));//车辆管理

        indexHashMap.put(300, new JumpBean(R.mipmap.icon_zhiliangguanli, R.mipmap.icon_zhiliangguanli, QualityListActivity.class));

        indexHashMap.put(310, new JumpBean(R.mipmap.icon_zhiliangjiancha, R.mipmap.icon_zhiliangjiancha, QualityListActivity.class, "type", Constants.QUALITY));

        indexHashMap.put(320, new JumpBean(R.mipmap.icon_shigubaogao, R.mipmap.icon_shigubaogao, QualityAccidentListActivity.class, "type", Constants.QUALITY));

        indexHashMap.put(330, new JumpBean(R.mipmap.icon_zhiliangzhenggai, R.mipmap.icon_zhiliangzhenggai, RectificationListActivity.class, "type", Constants.QUALITY));

        indexHashMap.put(340, new JumpBean(R.mipmap.icon_shiceshiliang, R.mipmap.icon_shiceshiliang, MeasureListActivity.class));

        indexHashMap.put(350, new JumpBean(R.mipmap.icon_zhiliangwenti, R.mipmap.icon_zhiliangwenti, QualityListActivity.class, "type", Constants.QUALITY_QUESTION));

        indexHashMap.put(400, new JumpBean(R.mipmap.icon_anquanguanli, R.mipmap.icon_anquanguanli, null));

        indexHashMap.put(410, new JumpBean(R.mipmap.icon_anquanjiancha, R.mipmap.icon_anquanjiancha, QualityListActivity.class, "type", Constants.SECURITY));

        indexHashMap.put(420, new JumpBean(R.mipmap.icon_anquanbaogao, R.mipmap.icon_anquanbaogao, QualityAccidentListActivity.class, "type", Constants.SECURITY));

        indexHashMap.put(430, new JumpBean(R.mipmap.icon_anquanzhenggai, R.mipmap.icon_anquanzhenggai, RectificationListActivity.class, "type", Constants.SECURITY));

        indexHashMap.put(440, new JumpBean(R.mipmap.icon_anquanpeixun, R.mipmap.icon_anquanpeixun, SafetyListActivity.class, "type", Constants.SAFETY_TRAINING));

        indexHashMap.put(450, new JumpBean(R.mipmap.icon_anquanyanxi, R.mipmap.icon_anquanyanxi, SafetyListActivity.class, "type", Constants.SAFETY_DRILL));

        indexHashMap.put(460, new JumpBean(R.mipmap.icon_richang, R.mipmap.icon_richang, QualityListActivity.class, "type", Constants.DAILY_SECURITY));

        indexHashMap.put(470, new JumpBean(R.mipmap.icon_anquanwenti, R.mipmap.icon_anquanwenti, QualityListActivity.class, "type", Constants.SECURITY_QUESTION));

        indexHashMap.put(500, new JumpBean(R.mipmap.icon_shebeiguanli, R.mipmap.icon_shebeiguanli, null));

        indexHashMap.put(510, new JumpBean(R.mipmap.icon_shebeichaxun, R.mipmap.icon_shebeichaxun, DeviceSearchActivity.class));

        indexHashMap.put(520, new JumpBean(R.mipmap.icon_shebeijinchu, R.mipmap.icon_shebeijinchu, DeviceListActivity.class));

        indexHashMap.put(530, new JumpBean(R.mipmap.icon_shebeibaoyang, R.mipmap.icon_shebeibaoyang, DeviceMainTainListActivity.class));

        indexHashMap.put(540, new JumpBean(R.mipmap.icon_shebeianchai, R.mipmap.icon_shebeianchai, DeviceDisassembleListActivity.class));

        indexHashMap.put(550, new JumpBean(R.mipmap.icon_shebeixunjian, R.mipmap.icon_shebeixunjian, DeviceInspectionListActivity.class));

        indexHashMap.put(560, new JumpBean(R.mipmap.icon_shebeijiance, R.mipmap.icon_shebeijiance, null));

        indexHashMap.put(600, new JumpBean(R.mipmap.icon_cailiaoguanli, R.mipmap.icon_cailiaoguanli, null));

        indexHashMap.put(610, new JumpBean(R.mipmap.icon_cailiaoyusuan, R.mipmap.icon_cailiaoyusuan, null));//材料预算

        indexHashMap.put(620, new JumpBean(R.mipmap.icon_cailiaojinchang, R.mipmap.icon_cailiaojinchang, MaterialInListActivity.class));

        indexHashMap.put(630, new JumpBean(R.mipmap.icon_cailiaolingyong, R.mipmap.icon_cailiaolingyong, MaterialUseListActivity.class));

        indexHashMap.put(640, new JumpBean(R.mipmap.icon_cailiaotongji, R.mipmap.icon_cailiaotongji, null));//材料统计

        indexHashMap.put(700, new JumpBean(R.mipmap.icon_huanjingjianche, R.mipmap.icon_huanjingjianche, null));//环境监测

        indexHashMap.put(800, new JumpBean(R.mipmap.icon_gongchenguanli, R.mipmap.icon_gongchenguanli, null));

        indexHashMap.put(810, new JumpBean(R.mipmap.icon_renwupaifa, R.mipmap.icon_renwupaifa, TaskListActivity.class));

        indexHashMap.put(820, new JumpBean(R.mipmap.icon_yuyuetadiao, R.mipmap.icon_yuyuetadiao, ReservationListActivity.class, "equipmentType", 1));

        indexHashMap.put(830, new JumpBean(R.mipmap.icon_shengjiangji, R.mipmap.icon_shengjiangji, ReservationListActivity.class, "equipmentType", 2));

        indexHashMap.put(840, new JumpBean(R.mipmap.icon_gongchenxinxi, R.mipmap.icon_gongchenxinxi, null));

        indexHashMap.put(850, new JumpBean(R.mipmap.icon_jindujihua, R.mipmap.icon_jindujihua, ScheduledPlanActivity.class));//总体进度计划

        indexHashMap.put(860, new JumpBean(R.mipmap.icon_gongchenjiegou, R.mipmap.icon_gongchenjiegou, ProjectStructureActivity.class));//工程结构

        indexHashMap.put(870, new JumpBean(R.mipmap.icon_gongchenjindu, R.mipmap.icon_gongchenjindu, ProjectScheduleActivity.class));//工程进度

        indexHashMap.put(900, new JumpBean(R.mipmap.icon_wendangguanli, R.mipmap.icon_wendangguanli, DocumentManagementActivity.class));

        indexHashMap.put(1000, new JumpBean(R.mipmap.icon_nenghaojiance, R.mipmap.icon_nenghaojiance, EnergyActivity.class));

        indexHashMap.put(1100, new JumpBean(R.mipmap.icon_diaogouguanli, R.mipmap.icon_diaogouguanli, HookMonitorActivity.class));
        //TODO 需要更换为统计报表菜单图标
        indexHashMap.put(1200, new JumpBean(R.mipmap.icon_cailiaolingyong, R.mipmap.icon_cailiaolingyong, StatisticReportActivity.class));

        indexHashMap.put(1300, new JumpBean(R.mipmap.icon_gaozhimojiance, R.mipmap.icon_gaozhimojiance, null));//高支模管理

        indexHashMap.put(1310, new JumpBean(R.mipmap.icon_gaozhimoshezhi, R.mipmap.icon_gaozhimoshezhi, null));

        indexHashMap.put(1320, new JumpBean(R.mipmap.icon_gaozhimojiance, R.mipmap.icon_gaozhimojiance, null));

        indexHashMap.put(1400, new JumpBean(R.mipmap.icon_anquanpeixun, R.mipmap.icon_anquanpeixun, null));

        indexHashMap.put(1410, new JumpBean(R.mipmap.icon_renyuanguanlii, R.mipmap.icon_renyuanguanlii, PersonManagementActivity.class));

        indexHashMap.put(1420, new JumpBean(R.mipmap.icon_peixunjilu, R.mipmap.icon_peixunjilu, StudyRecordActivity.class));

        indexHashMap.put(1430, new JumpBean(R.mipmap.icon_tongjichaxun, R.mipmap.icon_tongjichaxun, StatisticsAndQueryActivity.class));

        indexHashMap.put(1500, new JumpBean(R.mipmap.icon_xianchangguanli, R.mipmap.icon_xianchangguanli, null));

        indexHashMap.put(1510, new JumpBean(R.mipmap.icon_renwuxiafa, R.mipmap.icon_renwuxiafa, BuildListActivity.class, "type", Constants.LIVE));

        indexHashMap.put(1520, new JumpBean(R.mipmap.icon_renwuhuifu, R.mipmap.icon_renwuhuifu, ReplyListActivity.class, "type", Constants.LIVE));

        indexHashMap.put(1530, new JumpBean(R.mipmap.icon_tongzhigonggao, R.mipmap.icon_tongzhigonggao, NoticeListActivity.class, "type", Constants.LIVE));

        indexHashMap.put(1600, new JumpBean(R.mipmap.icon_tadiaojiance, R.mipmap.icon_tadiaojiance, null));

        indexHashMap.put(1610, new JumpBean(R.mipmap.icon_jianceshuju, R.mipmap.icon_jianceshuju, TowerDataListActivity.class));

        indexHashMap.put(1620, new JumpBean(R.mipmap.icon_tadiaoyujing, R.mipmap.icon_tadiaoyujing, TowerWarningListActivity.class));

        indexHashMap.put(1630, new JumpBean(R.mipmap.icon_tadiaoweizhang, R.mipmap.icon_tadiaoweizhang, TowerViolationListActivity.class));

        indexHashMap.put(1700, new JumpBean(R.mipmap.icon_shengjiangjijiance, R.mipmap.icon_shengjiangjijiance, null));

        indexHashMap.put(1710, new JumpBean(R.mipmap.icon_jianceshuju, R.mipmap.icon_jianceshuju, LiftDataListActivity.class));

        indexHashMap.put(1720, new JumpBean(R.mipmap.icon_shengjiangjiyujing, R.mipmap.icon_shengjiangjiyujing, LiftWarningListActivity.class));

        indexHashMap.put(1730, new JumpBean(R.mipmap.icon_shengjiangjiweizhang, R.mipmap.icon_shengjiangjiweizhang, LiftViolationListActivity.class));

        indexHashMap.put(1800, new JumpBean(R.mipmap.icon_huanjingjianche, R.mipmap.icon_huanjingjianche, null));

        indexHashMap.put(1810, new JumpBean(R.mipmap.icon_jianceshuju, R.mipmap.icon_jianceshuju, EnvironmentDataListActivity.class));

        indexHashMap.put(1820, new JumpBean(R.mipmap.icon_huanjingyujing, R.mipmap.icon_huanjingyujing, EnvironmentWarningListActivity.class));

        indexHashMap.put(1830, new JumpBean(R.mipmap.icon_penlinkongzhi, R.mipmap.icon_penlinkongzhi, EnvironmentSprayListActivity.class));

        indexHashMap.put(1900, new JumpBean(R.mipmap.icon_tongjibaobiao, R.mipmap.icon_tongjibaobiao, null));

        indexHashMap.put(1910, new JumpBean(R.mipmap.icon_tadiaobaobiao, R.mipmap.icon_tadiaobaobiao, TowerFormDataActivity.class));

        indexHashMap.put(1920, new JumpBean(R.mipmap.icon_shengjiangjibaobiao, R.mipmap.icon_shengjiangjibaobiao, LiftFormDataActivity.class));

        indexHashMap.put(1930, new JumpBean(R.mipmap.icon_gaozhimobaobiao, R.mipmap.icon_gaozhimobaobiao, null));

        indexHashMap.put(1940, new JumpBean(R.mipmap.icon_huanjingbaobiao, R.mipmap.icon_huanjingbaobiao, EnvironmentFormDataActivity.class));

        indexHashMap.put(1950, new JumpBean(R.mipmap.icon_kaoqinbaobiao, R.mipmap.icon_kaoqinbaobiao, AttendanceFormDataActivity.class));
        //视频会议
        indexHashMap.put(2000, new JumpBean(R.mipmap.icon_shipinhuiyi, R.mipmap.icon_shipinhuiyi, null));

        for(int i = 0; i < professionString.length; i++)
            workTypeHashMap.put(professionString[i], i + 1);

    }

}
